package com.junjie.checkin.request.pointRecord;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 洪浚杰
 * @description 积分明细分页请求参数
 * @date 2025/6/18 14:10
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PointRecordPageRequest {
    private Integer page; // 当前页码
    private Integer pageSize;  // 每页数量
    private String type;  // 积分变动类型
    private Boolean increase;  // 积分是否是收入
    private String reason;  // 积分变动原因

    public void initDefault(){
        if(page == null || page <=0 ){
            this.page=1;
        }
        if (pageSize == null || pageSize <=0){
            this.pageSize=10;
        }
    }
}
